import { Component } from 'react'
import './app.scss'
import createApp from './dva'
import models from './models'
import { Provider } from 'react-redux'

const dvaApp = createApp({
  initialState: {},
  models,
})

const store = dvaApp.getStore();

class App extends Component {

  componentDidMount() { }

  componentDidShow() { }

  componentDidHide() { }

  // this.props.children 是将要会渲染的页面
  render() {
    return  <Provider store={store}>{this.props.children}</Provider>
  }
}

export default App
